<!DOCTYPE html> 
<html class="ui-mobile-rendering"> 

<head> 
	<title>Hellogue</title> 
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<meta name="viewport" content="width=device-width, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="<?echo base_url('themes/jquery.mobile.structure-1.0.1.min.css');?>" />
    <link rel="stylesheet" href="<?echo base_url('themes/hellogue.min.css');?>" />
       
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
    <link rel="stylesheet" href="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.css" /> 
    <script src="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.js"></script>

    <?php if (false) :?>
    <script src="<?echo base_url('themes/jquery.easing.1.3.js');?>"></script>
    <script src="<?echo base_url('themes/jquery.mobile.scrollview.js');?>"></script>
    <script src="<?echo base_url('themes/scrollview.js');?>"></script>
    <script src="<?echo base_url('themes/jquery.mobile.iscroll.js');?>"></script>
    <script src="http://cubiq.org/dropbox/iscroll/iscroll.js?v3.7.1"></script>

    <?php endif;?>
</head> 

<body> 
 	
 	<div data-role = "page">

<?php if ( $id != "readApplicants" and $id != "confirmed_hello" and $id != "login" and $id != "register" and $id != "me" ): ?>

	
	<div data-role="header" data-position="fixed">
 		
 		<a data-rel="back" data-role="button" data-icon="back" data-iconpos="left">Back</a>
		<h1><?=$title?></h1>
		<a href="<?=site_url('hello_controller/to_create_hello');?>" data-role="button" class="ui-btn-right" data-icon="createhello" data-iconpos="right">New</a>

		<div data-role="navbar" class="ui-navbar" data-iconpos="left">
			<ul>
			<?php if ($id=="feed"):?>
			<li><a href="<?php echo site_url('feed_controller');?>"  data-role="button" data-icon="world"  class="ui-btn-active ui-state-persist"><b>Feed</b></a></li>
			<?php else: ?>
			<li><a href="<?php echo site_url('feed_controller');?>"  data-transition="slidedown" data-role="button" data-icon="world"><b>Feed</b></a></li>
	    	<?php endif; ?>
	    
	   		<?php if ($id=="notification"):?>
			<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Notice</b></a></li>
			<?php else: ?>
			<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification" data-transition="slidedown" data-inline="true"><b>Notice</b></a></li>
			<?php endif; ?>
		
			<?php if ($id=="message"):?>
			<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Message</b></a></li>
			<?php else: ?>
			<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages" data-transition="slidedown" data-inline="true"><b>Mesg</b></a></li>
			<?php endif; ?>
		
			<?php if ($id=="me"):?>
			<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me"  data-inline="true" class="ui-btn-active ui-state-persist"><b>Profile</b></a></li>
			<?php else: ?>
			<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me" data-transition="slidedown" data-inline="true"><b>Profile</b></a></li>
			<?php endif; ?>
		
			</ul>
		</div><!-- navbar -->
	</div><!-- header -->
	


<?php elseif($id=="me"): ?>
   
   <div data-role="header"  data-position="fixed">		
		
		<?php if ($rows->userid==$this->session->userdata('userid')) :?>
			<a data-rel="back" data-role="button" data-icon="back" data-iconpos="left">Back</a>
			<h1>My Profile</h1>
			<a href="<?=site_url('hello_controller/to_create_hello');?>" data-role="button" class="ui-btn-right" data-icon="createhello" data-iconpos="right">New</a>
		
			<div data-role="navbar" data-iconpos="left" >
			<ul>
			<li><a data-theme="b"   href="<?echo site_url('feed_controller/index');?>" data-icon="gear"  data-transition="slidedown"><b>Feed</b></a></li>
			<li><a data-theme="b"   href="<?echo site_url('feed_controller/my_hello');?>" data-icon="info"  data-transition="slidedown"><b>My Hel</b></a></li>
			<li><a data-theme="b"   href="<?php echo site_url('friend_controller/view_my_friends');?>" data-icon="star" data-transition="slidedown" >Friend</a></li>
			<li><a data-theme="b"  href="<?=site_url('user_controller/to_edit_profile');?>" data-icon="grid"  data-transition="slidedown"><b>Edit</b></a></li>	
			</ul>
			</div><!--narvbar-->
		
		<?php else: ?><!-- for dialog -->
			<h4><?=$rows->fullname?></h4>	
		<?php endif; ?>
	</div><!-- header -->
	

<? elseif ( $id == "readApplicants" ): ?>
	<div data-role="header"  data-position="fixed">	
		<h4>Applicants</h4>
	</div>
	

<? elseif ( $id == "confirmed_hello" ): ?>
	<div data-role="header"  data-position="fixed">	
		<h4>Hello World</h4>
	</div>
	
<? elseif ($id == "register"): ?>
	<div data-role="header"  data-position="fixed">	
		<a href ="<?= site_url('splash_controller');?>" data-role="button" class="ui-brn-left" data-icon="arrow-l">Back</a>
		<h1>Hello World</h1>
	</div>
	
<? else: ?>
<? endif; ?>
	


	
	
	
	<!--
	<?php if (($id=="feed" or $id=="me")and !$this->session->userdata('isverified')): ?>
	<p><b>You haven't verified your account<b></p>
	
	<?php endif;?>
	-->